(function (w) {
    function setFontSize() {
        const cardinal_number = 1920;
        const answer_number = 100;
        const inner_width = w.innerWidth;
        let width = 0;
        width = inner_width / (cardinal_number / answer_number);
        if (width <= 12) {
            width = 12;
        }
        const element = document.getElementsByTagName("html")[0];
        element.style.fontSize = `${width}px`;
    }
    setFontSize();
    window.addEventListener("resize", setFontSize);
})(window);
